import 'package:dio/dio.dart';
import 'app_exceptions.dart';

class ErrorInterceptor extends Interceptor {
  @override
  void onError(DioException err, ErrorInterceptorHandler handler) {
    CancelToken.isCancel(err);
    var exception = AppException.create(err);
    super.onError(err, handler);
  }
}
